<?php

use Illuminate\Database\Migrations\Migration;

class CreateAdministratorAdmTable extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		Schema::create('Admin_Adm', function($table)
	    {
	        $table->increments('adm_code');
	        $table->string('adm_name', 30);
	        $table->string('adm_login', 30)->unique();
	        $table->string('adm_password', 30);
	        $table->string('adm_email', 30)->unique();
	        $table->boolean('adm_active');
	        $table->string('adm_priv', 10);
	        $table->timestamps();
	    });
	}

	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		Schema::drop('Admin_Adm');
	}

}